const Imgcategory = require('../../db').Imgcategory

module.exports={
    async find(ctx,next){
        try{
            let imgInfo = await Imgcategory.find({},null)

            ctx.body = {
                code: 200,
                msg: "查询成功",
                list: imgInfo
            }
        } catch(e){
            ctx.body = {
                code: 500,
                msg: "查询异常"
            }
        }
    }
}